﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using TodoApp.Enum;
using TodoApp.LiveShopCarDTO;

namespace TodoApp
{
    /// <summary>
    ///  购物车 接口 
    /// </summary>
  public  interface ICarService : Volo.Abp.Application.Services.IApplicationService
    {
        /// <summary>
        ///  删除 
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>

        Task DeleteAsync(int id);

        /// <summary>
        ///  添加 
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>

        Task<ShopStatus> InsertAsync(LiveShopCarAddDTO model);

        /// <summary>
        ///  显示  
        /// </summary>
        /// <returns></returns>

        Task<List<LiveShopCarShowDTO>> GetListAsync();

        /// <summary>
        ///  修改 
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>

        Task<ShopStatus> UpdateAsync(LiveShopCarShowDTO model);

    }
}
